by Bryan Blake (8 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 26th March 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Extract ONLY filename from fullpath. Returns "test.exe" from "C:\Program Files\Test\test.exe". (3 lines of code!)
strFileName = Split(Text1.Text, "\")
strFileName = strFileName(UBound(strFileName))
Text2.Text = strFileName
No comments have been posted about Extract ONLY filename from fullpath. Returns test.exe from C:\Program Files\Test\test.exe. (3 l. Why not be the first to post a comment about Extract ONLY filename from fullpath. Returns test.exe from C:\Program Files\Test\test.exe. (3 l.